package com.xunlai.infra.permission.storage.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;


/**
 * @author liang
 * @date 2022/11/28 17:54
 */
@Table("system_user_info")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserInfo extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 5420763647765107842L;

    @Id
    private Long id;

    /**
     * 账号ID
     */
    private Long accountId;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private LocalDate birthday;

    /**
     * 性别 1：男，2：女
     */
    private Short gender;

    /**
     * 联系方式
     */
    private String contact;

    /**
     * 地址
     */
    private String address;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区/县
     */
    private String county;

    /**
     * 学历
     */
    private String education;

}
